import Model from './Model';
//import mongoose from 'mongoose'

const RAMDOM_TIME = 10000;

Model.define('User', {
    nick: {
        type: String,
        default: () => '用户' + Date.now() + parseInt(Math.random() * RAMDOM_TIME).toString()
    },
    username: String,
    email: String,
    phone: String,
    uid: {
        type: Number,
        required: true,
        index: true,
        unique: true,
    }
});
